From: Joey Hess Date: Tue, 25 Feb 2025 21:23:38 +0000 (-0400) Subject: pdate demo program X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~6^2~119^2~37 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=f8c7cea019ec3c3092cfb3eacd7c9b16a96ea034;p=git-annex.git pdate demo program needed a mkdir --- diff --git a/doc/design/compute_special_remote_interface.mdwn b/doc/design/compute_special_remote_interface.mdwn index 34b7da7e77..f8fa92ed46 100644 --- a/doc/design/compute_special_remote_interface.mdwn +++ b/doc/design/compute_special_remote_interface.mdwn @@ -92,16 +92,17 @@ An example `git-annex-compute-foo` shell script follows: #!/bin/sh set -e if [ "$1" != "convert" ]; then - echo "Usage: convert input output [passes=n]" >&2 - exit 1 + echo "Usage: convert input output [passes=n]" >&2 + exit 1 fi if [ -z "$ANNEX_COMPUTE_passes" ]; then - ANNEX_COMPUTE_passes=1 + ANNEX_COMPUTE_passes=1 fi echo "INPUT $2" read input echo "OUTPUT $3" echo REPRODUCIBLE if [ -n "$input" ]; then - frobnicate --passes="$ANNEX_COMPUTE_passes" <"$input" >"$3" + mkdir -p "$(dirname "$3")" + frobnicate --passes="$ANNEX_COMPUTE_passes" <"$input" >"$3" fi